package com.lzy.managersystem.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @TableName t_comment
 */
@TableName(value = "t_comment")
@Data
public class Comment implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 评论内容
     */
    private String content;
    /**
     * 评论人id
     */
    private Integer userId;
    /**
     * 评论时间
     */
    private String time;
    /**
     * 父级id
     */
    private Integer pid;
    /**
     * 最上级评论id
     */
    private Integer originId;
    /**
     * 关联文章id
     */
    private Integer arcticleId;
    @TableField(exist = false)
    private Integer pUserId;
    @TableField(exist = false)
    private String pNickname;


    @TableField(exist = false)
    private String avatarUrl;
    @TableField(exist = false)
    private String nickname;
    @TableField(exist = false)
    private List<Comment> children;


}